package top.zhangjianyong.tools.config.web;

import org.springframework.core.convert.converter.Converter;
import top.zhangjianyong.tools.utils.DateTimeUtil;

import java.time.LocalDate;

/**
 * @author ： zhangjianyong
 * @date ： 2022/8/11 4:05 PM
 */
public class LocalDateConverter implements Converter<String, LocalDate> {

    @Override
    public LocalDate convert(String source) {

        return DateTimeUtil.parseDate(source);
    }
}
